/*!
 * Polkascan Explorer UI
 * Copyright (C) 2018-2022 Polkascan Foundation (NL)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

ps-tooltips {
  position: fixed;
  top: 4rem;
  right: 1rem;
  max-height: 100%;
  z-index: 5000;
  pointer-events: none;

  display: flex;
  flex-direction: column-reverse;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: flex-end;
}

.ps-tooltip-item {
  background: var(--ps-top-bar-bg-color);
  padding: 1rem;
  margin-bottom: 1rem;
  pointer-events: auto;
  font-size: 10px;
  opacity: 0;
  color: var(--ps-top-bar-text-color);
  transition: opacity ease 500ms;
  animation: ps-tooltip-item-animation 5000ms;
}

@keyframes ps-tooltip-item-animation {
  0% {
    margin-bottom: -3rem;
    opacity: 0;
  }
  5% {
    margin-bottom: 1rem;
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

